{%extends 'layout.html'%}

{%block main%}

<ol class="breadcrumb">
    <li><a href="/admin">admin index</a></li>
    <li><span>user list</span></li>
</ol>

<h3>user list</h3>

{%include 'pagination.html'%}

<table class="table table-hover table-striped">
    <tr>
        <th>id</th>
        <th>username</th>
        <th>password</th>
        <th>isAdmin</th>
    </tr>
    {%for user in users%}
    <tr>
        <td>{{user._id.toString()}}</td>
        <td>{{user.username}}</td>
        <td>{{user.password}}</td>
        <td>{%if user.isAdmin%}yes{%endif%}</td>
    </tr>
    {%endfor%}
</table>

{%include 'pagination.html'%}

{%endblock%}
